package com.jy.api.payReq;

import com.alibaba.fastjson.annotation.JSONField;
import com.aliyun.openservices.shade.com.alibaba.rocketmq.common.filter.impl.Op;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QrcodePayRequest extends TransBaseRequest{
    @JSONField(
            name = "service"
    )
    private String service = "pay.qrcode.qrcodepay";
    @JSONField(
            name = "pay_type"
    )
    private String payType;
    @JSONField(
            name = "out_trade_no"
    )
    private String outTradeNo;
    @JSONField(
            name = "total_fee"
    )
    private String totalFee;
    @JSONField(
            name = "body"
    )
    private String body;
    @JSONField(
            name = "term_no"
    )
    private String termNo;
    @JSONField(
            name = "device_info"
    )
    private String deviceInfo;
    @JSONField(
            name = "mch_create_ip"
    )
    private String mchCreateIp;
    @JSONField(
            name = "notify_url"
    )
    private String notifyUrl;
    @JSONField(
            name = "attach"
    )
    private String attach;
    @JSONField(
            name = "longitude"
    )
    private String longitude;
    @JSONField(
            name = "latitude"
    )
    private String latitude;
    @JSONField(
            name = "op_user_id"
    )
    private String opUserId;
    @JSONField(
            name = "op_shop_id"
    )
    private String opShopId;
    @JSONField(
            name = "remark"
    )
    private String remark;


    public QrcodePayRequest(String id, String amount, String body) {
        this.outTradeNo=id;
        this.totalFee=amount;
        this.body="火星云";
        this.attach=body;
        this.payType="wxpay";
    }
}
